package com.example.newfxdemo.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.newfxdemo.entity.Emp;
import com.example.newfxdemo.dao.EmpMapper;
import com.example.newfxdemo.service.IEmpService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xgz
 * @since 2023-03-07
 */
@Service
public class EmpServiceImpl extends ServiceImpl<EmpMapper, Emp> implements IEmpService {

    @Autowired
    private EmpMapper empMapper;

    @Override
    public Page findAll(Page page) {

        return empMapper.findAll(page);
    }
}
